package com.thm.tfast.core.oss;

import com.thm.tfast.core.utils.SpringUtil;

import java.util.Objects;

/**
 * @author THM
 * @date 2022/10/27
 * @desc oss服务工厂
 */
public class OssServiceFactory {

    public static AbstractOssService getInstance(Class<? extends AbstractOssService> clazz){
        if (Objects.isNull(clazz)){
            return SpringUtil.getBean(MinioOssService.class);
        }
        return SpringUtil.getBean(clazz);
    }
}
